<template>
	<!-- 我的-自提核销-扫码核销 -->
	<view class="ScanCodeVerification">
		<view class="main">
			<view class="main-footer" @click="scanCode">
				<uni-icons type="scan" size="110rpx" color="white"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				ScanCodeNum: 1,
				handMovementNum: 0,
			}
		},
		methods: {
			scanCode() {
				uni.chooseImage({
					sourceType: ['camera'], // 指定相机作为图片来源
					success: (res) => {
						// 选择成功后，可以通过res.tempFilePaths获取到照片的临时路径
						this.photoPath = res.tempFilePaths[0]
					},
					fail: () => {
						uni.showToast({
							title: '拍照失败',
							icon: 'none'
						})
					}
				})
			},
		}
	}
</script>

<style lang="less" scoped>
	.ScanCodeVerification {
		.main {
			width: 702rpx;
			height: 452rpx;
			background: white;
			box-shadow: 0rpx 16rpx 24rpx 0rpx rgba(201, 201, 201, 0.34);
			border-radius: 20rpx;

			.main-title {
				display: flex;
				justify-content: space-around;
				font-size: 24rpx;
				font-family: PingFang SC;
				font-weight: 400;
				padding: 72rpx 0 103rpx 0;

				image {
					width: 78rpx;
					height: 72rpx;
				}
			}

			.main-footer {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 252rpx;
				height: 252rpx;
				background: #F14500;
				border-radius: 50%;
				margin: auto;
			}
		}
	}
</style>